import React from 'react';
import styles from './index.css';
import Header from './Header';
import withRouter from 'umi/withRouter';
import {Breadcrumb, Content,Footer} from 'antd'

function Layout({ children, location ,routes,params}) {
    return (
        <div className={styles.normal}>
            <Header location={location} >
            </Header>
            <Breadcrumb routes={routes} params={params} />
            <div className={styles.content}>
                <div  className={styles.main}>{children}</div>
            </div>
            <footer style={{ textAlign: 'center' }}>
                Ant Design ©2016 Created by Ant UED
            </footer>
        </div>
    );
}

export default withRouter(Layout);